/*
 * FanController.h
 *
 *  Created on: Jul 26, 2013
 *      Author: User
 */

#ifndef FANCONTROLLER_H_
#define FANCONTROLLER_H_

#include "PinChangeInt.h"
#include "TimerOne.h"

class FanControl {
public:
	void initialize(int, int);
	int getRPM();
	int huntMinSpeed(int);
	int huntMaxSpeed(int);
	void setPWMValue(int);
	void setRPMValue(int, int, int);

private:
	int pinCNTL;
	int pinTACH;
	int minSpeed;
	int maxSpeed;

};

extern FanControl Fan1;

#endif /* FANCONTROLLER_H_ */
